﻿using ProjectCloth.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProjectCloth.FrmUI
{
    public partial class PayableAccountFrm : Form
    {
        private ClothContext db = new ClothContext();
        public PayableAccountFrm()
        {
            InitializeComponent();
        }

        private void searchBtn_Click(object sender, EventArgs e)
        {
            var start = startDatePiker.Value;
            var end = endDatePicker.Value;
            dataGridView1.DataSource = db.PayableAccounts.Where(o => o.MakerTime > start && o.MakerTime < end).ToList();
            //MessageBox.Show("暂时没有数据！");
        }

        private void exportBtn_Click(object sender, EventArgs e)
        {

        }
    }
}
